package com.fnzx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fnzx.dao.RelationDao;
import com.fnzx.entity.RelationEntity;
import com.fnzx.entity.VideoEntity;
import com.fnzx.service.RelationService;
import com.fnzx.util.PageUtils;
import com.fnzx.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("relationService")
public class RelationServiceImpl extends ServiceImpl<RelationDao, RelationEntity> implements RelationService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RelationEntity> page = this.page(
                new Query<RelationEntity>().getPage(params),
                new QueryWrapper<RelationEntity>()
        );

        return new PageUtils(page);
    }
}
